.select2-container {
  &:hover .select2-choice, &.select2-container-active .select2-choice {
    background-color: $color-sel-hover-bg !important;
    border-color: $color-sel-hover-bg !important;
  }

  &.select2-container-disabled .select2-choice {
    background-color: $color-sel-disabled-bg !important;
    border-color: $color-sel-disabled-bg !important;
    color: $color-sel-disabled-text !important;
  }

  .select2-choice {
    background-image: none !important;
    background-color: $color-sel-bg;
    border: none !important;
    border-radius: $border-radius;
    box-shadow: none !important;
    color: $color-1 !important;
    font-size: 90%;
    height: 31px;
    line-height: inherit !important;
    padding: 5px 15px 7px;

    span {
      display: block;
      padding: 2px;
    }

    .select2-search-choice-close {
      @extend .fa;
      @extend .fa-times;
      display: none;
      margin-top: 2px;
      font-size: 100% !important;
      background-image: none !important;
    }
  }

  &.select2-container-active {
    .select2-choice {
      box-shadow: none !important;
    }

    &.select2-dropdown-open .select2-choice div b {
      @extend .fa-caret-up
    }
  }
}


.select2-drop {
  box-shadow: none !important;
  z-index: 1000000;
  max-width: auto !important;
  border-top: 1px solid;
  border-color: $color-sel-hover-bg;

  &.select2-drop-above {
    border-color: $color-sel-hover-bg;
  }
}

.select2-search {
  @extend .fa;
  @extend .fa-search;

  font-size: 100%;
  color: darken($color-border, 15);
  padding: 0 9px 0 0;

  &:before {
    @extend [class^="icon-"]:before;

    position: absolute;
    top: 16px;
    left: 13px;
  }

  input {
    @extend input[type="text"];
    margin-top: 5px;
    margin-left: 4px;
    padding-left: 25px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-family: $base-font-family;
    font-size: 90%;
    box-shadow: none;
    background-image: none;
  }
}

.select2-container .select2-choice .select2-arrow {
  background-image: none;
  background: transparent;
  border: 0;

  b {
    padding-top: 7px;
    display: block;
    width: 100%;
    height: 100%;
    background: none !important;
    font-family: FontAwesome;
    font-weight: 200 !important;

    &:before {
      content: "\f0d7";
    }
  }
}

.select2-results {
  margin: 4px 0;
  padding: 0 4px;

  li {
    font-size: 85% !important;


    &:nth-child(odd) {
      background: #efefef;
    }

    &.select2-highlighted {
      .select2-result-label {
        &, .media-heading, .media-content, .customer-email {
          color: $color-1 !important;
        }
      }
    }

    .select2-result-label {
      color: $color-body-text;
      min-height: 22px;
      clear: both;
      overflow: auto;

      .variant-autocomplete-item {
        .media-content {
          dd {
            margin: 0;
          }
        }
      }
    }

    &.select2-no-results, &.select2-searching {
      padding: 5px;
      background-color: transparent;
      color: $color-body-text;
      text-align: center;
      font-weight: $font-weight-bold;
    }
  }

  .select2-highlighted {
    background-color: $color-sel-bg !important;
  }
}

.select2-container-multi {
  &.select2-container-active, &.select2-dropdown-open {
    .select2-choices {
      border-color: $color-sel-hover-bg !important;
      box-shadow: none;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }
  }
  .select2-choices {
    @extend input[type="text"];
    padding: 6px 3px 3px 3px;
    box-shadow: none;
    background-image: none !important;

    .select2-search-choice {
      margin: 0 0 3px 3px;
      background-image: none;
      background-color: $color-sel-bg;
      border: none;
      border-radius: $border-radius;
      box-shadow: none;
      color: $color-1 !important;
      font-size: 85%;

      &:hover {
        background-color: $color-sel-hover-bg;
      }

      .select2-search-choice-close {
        background-image: none !important;
        font-size: 85% !important;
        @extend .fa;
        @extend .fa-times;
        margin-left: 2px;
        color: $color-1;
        &:before {
          font-size: 11px;
        }
      }
    }
  }
}

label .select2-container {
  margin-top: -6px;
  .select2-choice {
    span {
      text-transform: none;
      font-weight: normal;
    }
  }
}
